package cm.util.action.info;

import cm.util.exception.MessageException;

/**
 * 
 * @author 苏玮
 *
 * 2010-11-29
 *
 */
public interface InfoAction {
	
	/**
	 * 传入参数
	 */
	public final static String ADD = "add";

	public final static String DETAIL = "detail";

	public final static String DELETE = "delete";

	public final static String UPDATE = "update";

	public final static String TO_UPDATE = "to_update";
	
	
	
	/**
	 * 执行结果返回参数
	 */
	public final static String ADD_SUCCESS = "add_success";
	
	public final static String DETAIL_SUCCESS = "detail_success";

	public final static String DELETE_SUCCESS = "delete_success";

	public final static String UPDATE_SUCCESS = "update_success";

	public final static String TO_UPDATE_SUCCESS = "to_update_success";

	/**
	 * 出错结果返回类型
	 */

	public final static String ADD_INPUT = "add_input";
	
	public final static String UPDATE_INPUT = "update_input";
	/**
	 * 添加实体信息
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return
	 */
	public String add() throws MessageException;
	/**
	 * 获得实体详细信息
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return
	 */
	public String detail() throws MessageException;

	/**
	 * 删除实体信息
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return
	 */
	public String delete() throws MessageException;

	/**
	 * 更新实体信息
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return
	 */
	public String update() throws MessageException;

	/**
	 * 跳转到更新实体页面
	 * 
	 * @param mapping
	 * @param form
	 * @param request
	 * @param response
	 * @return
	 * @throws MessageException
	 */
	public String to_update() throws MessageException;

}
